<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnConfirmStatusInPlanTable extends AbstractMigration
{
    public function up()
    {
        $this->table("plan")
            ->addColumn('confirm_status', 'enum', ['values' => 'yes,no', 'default' => 'no', 'comment' => '是否确认排期'])
            ->save();
    }

    public function down()
    {
        $this->table('plan')->removeColumn('confirm_status')->save();
    }
}
